
# 将头文件全放入字符串
FREERTOS_INCLUDES_FILE = \
$(wildcard ../code/lib/FreeRTOS/Source/*.h) \
$(wildcard ../code/lib/FreeRTOS/Source/*/*.h) \
$(wildcard ../code/lib/FreeRTOS/Source/*/*/*/*.h)

LVGL_INCLUDES_FILE = \
$(wildcard ../code/lib/lvgl/*.h) \
$(wildcard ../code/lib/lvgl/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*/*/*/*/*.h) \
$(wildcard ../code/lib/lvgl/*/*/*/*/*/*/*/*/*.h)


# 将所有头文件剔除仅剩路径，并在前面加上“-I”
FREERTOS_INCLUDES = $(foreach dir,$(dir $(FREERTOS_INCLUDES_FILE)),-I$(dir))
LVGL_INCLUDES = $(foreach dir,$(dir $(LVGL_INCLUDES_FILE)),-I$(dir))



# 将所有重复字符串剔除并排序
C_INCLUDES =  \
$(sort $(FREERTOS_INCLUDES)) \





all:
	@echo $(C_INCLUDES)



